import type { AppRouteModule } from '@/router/types';

import { getParentLayout, LAYOUT } from '@/router/constant';
import { t } from '@/hooks/web/useI18n';

const baseInfo: AppRouteModule = {
  path: '/orderManage',
  name: 'orderManage',
  component: LAYOUT,
  redirect: '/orderManage/orderList',
  meta: {
    orderNo: 19,
    icon: 'ant-design:shop-outlined',
    title: t('routes.demo.orderManage.manage'),
    roles: 'store,manage',
  },

  children: [
    {
      path: 'orderList',
      name: 'orderList',
      component: () => import('@/views/orderManage/orderList/index.vue'),
      meta: {
        title: t('routes.demo.orderManage.orderList'),
        roles: 'store,manage',

      },
    },
    // {
    //   path: 'orderList',
    //   name: 'OrderList',
    //   component: () => import('@/views/shop/orderList/index.vue'),
    //   meta: {
    //     title: t('routes.demo.shop.orderList'),
    //   },
    // },


    // {
    //   path: 'request',
    //   name: 'RequestDemo',
    //   // @ts-ignore
    //   component: () => import('@/views/demo/excel/UploadDemo.vue'),
    //   meta: {
    //     title: t('routes.demo.feat.requestDemo'),
    //   },
    // },

  ],
};

export default baseInfo;
